<?php defined('SYSPATH') or die('No direct script access.');

class Valid extends Kohana_Valid {
	
	/**
	 * Integer validation.
	 *
	 * @param string $text
	 * @return bool
	 */
	public static function integer($text) {
		return (bool) preg_match('/^[\-+]?[0-9]+$/', $text);
	}
	
}
